package com.RedRiver.hospitalsystem.personal_service.service.Form;

import com.RedRiver.hospitalsystem.personal_service.common.util.Md5Util;
import lombok.Data;


public class Login {

    private String username;

    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return Md5Util.getMi(password);
    }

    public void setPassword(String password) {
        this.password=password;
    }

    public Login(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public Login() {

    }

    @Override
    public String toString() {
        return "Login{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
